package hhm.javamode.composite.duck;

/**
 * Created by Administrator on 2017/1/23.
 */
public class DuckFactory extends  AbstractDuckFactory {
    @Override
    public Quackable createMallardDuck() {
        return new MallardDuck();
    }

    @Override
    public Quackable createRedheadDuck() {
        return new RedheadDuck();
    }

    @Override
    public Quackable createDuackcall() {
        return new DuckCall();
    }

    @Override
    public Quackable createRubberDuck() {
        return new RubberDuck ();
    }
}
